﻿using System;
using System.Xml.Linq;

namespace YArchitech.Temp
{
	public class HYObject : IHYXmlSerial
	{
		public int Id { get; set; }

		public string ErrorString { get; set; }

		public override string ToString()
		{
			return "HYObject";
		}

		public virtual void WriteXml(XElement xe)
		{
			xe.SetAttributeValue("Id", this.Id);
		}

		public virtual void ReadXml(XElement xe)
		{
			this.Id = (int)xe.Attribute("Id");
		}
	}
}
